package com.regent.central.bill.core.mrp;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@Table(name = "central_action_material_arrive")
public class ActionMaterialArrive {
    @Id
    private String id;

    /**
     * 记录版本
     */
    private Integer version;

    @Column(name = "date_created")
    private Date dateCreated;

    @Column(name = "date_updated")
    private Date dateUpdated;

    @Column(name = "time_deleted")
    private Long timeDeleted;

    /**
     * 采购单ID, 到料的依据一定是采购单
     */
    @Column(name = "central_bill_material_purchase_id")
    private String centralBillMaterialPurchaseId;

    /**
     * 工单ID, 如果是计划外采购这个字段不用管(一般设置为空字符串)
     */
    @Column(name = "fac_mission_id")
    private String facMissionId;

    /**
     * 冗余成衣款号
     */
    @Column(name = "style_no")
    private String styleNo;

    /**
     * 冗余物料款式ID
     */
    @Column(name = "common_materials_id")
    private String commonMaterialsId;

    /**
     * 冗余物料号
     */
    @Column(name = "common_materials_no")
    private String commonMaterialsNo;

    /**
     * 物料skuID
     */
    @Column(name = "common_materials_sku_id")
    private String commonMaterialsSkuId;

    /**
     * 本次到料数量
     */
    private BigDecimal quantity;

    /**
     * 到料单价
     */
    @Column(name = "price_unit")
    private BigDecimal priceUnit;

    /**
     * 到料金额
     */
    @Column(name = "price_total")
    private BigDecimal priceTotal;

    /**
     * 采购类型  0: 按工单bom需求采购 1: 计划外采购
     */
    private Integer type;

    /**
     * 撤销标记 0：未撤销 1：已撤销
     */
    @Column(name = "cancel")
    private boolean cancel;

    /**
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取记录版本
     *
     * @return version - 记录版本
     */
    public Integer getVersion() {
        return version;
    }

    /**
     * 设置记录版本
     *
     * @param version 记录版本
     */
    public void setVersion(Integer version) {
        this.version = version;
    }

    /**
     * @return date_created
     */
    public Date getDateCreated() {
        return dateCreated;
    }

    /**
     * @param dateCreated
     */
    public void setDateCreated(Date dateCreated) {
        this.dateCreated = dateCreated;
    }

    /**
     * @return date_updated
     */
    public Date getDateUpdated() {
        return dateUpdated;
    }

    /**
     * @param dateUpdated
     */
    public void setDateUpdated(Date dateUpdated) {
        this.dateUpdated = dateUpdated;
    }

    /**
     * @return time_deleted
     */
    public Long getTimeDeleted() {
        return timeDeleted;
    }

    /**
     * @param timeDeleted
     */
    public void setTimeDeleted(Long timeDeleted) {
        this.timeDeleted = timeDeleted;
    }

    /**
     * 获取采购单ID, 到料的依据一定是采购单
     *
     * @return central_bill_material_purchase_id - 采购单ID, 到料的依据一定是采购单
     */
    public String getCentralBillMaterialPurchaseId() {
        return centralBillMaterialPurchaseId;
    }

    /**
     * 设置采购单ID, 到料的依据一定是采购单
     *
     * @param centralBillMaterialPurchaseId 采购单ID, 到料的依据一定是采购单
     */
    public void setCentralBillMaterialPurchaseId(String centralBillMaterialPurchaseId) {
        this.centralBillMaterialPurchaseId = centralBillMaterialPurchaseId;
    }

    /**
     * 获取工单ID, 如果是计划外采购这个字段不用管(一般设置为空字符串)
     *
     * @return fac_mission_id - 工单ID, 如果是计划外采购这个字段不用管(一般设置为空字符串)
     */
    public String getFacMissionId() {
        return facMissionId;
    }

    /**
     * 设置工单ID, 如果是计划外采购这个字段不用管(一般设置为空字符串)
     *
     * @param facMissionId 工单ID, 如果是计划外采购这个字段不用管(一般设置为空字符串)
     */
    public void setFacMissionId(String facMissionId) {
        this.facMissionId = facMissionId;
    }

    /**
     * 获取冗余成衣款号
     *
     * @return style_no - 冗余成衣款号
     */
    public String getStyleNo() {
        return styleNo;
    }

    /**
     * 设置冗余成衣款号
     *
     * @param styleNo 冗余成衣款号
     */
    public void setStyleNo(String styleNo) {
        this.styleNo = styleNo;
    }

    /**
     * 获取冗余物料款式ID
     *
     * @return common_materials_id - 冗余物料款式ID
     */
    public String getCommonMaterialsId() {
        return commonMaterialsId;
    }

    /**
     * 设置冗余物料款式ID
     *
     * @param commonMaterialsId 冗余物料款式ID
     */
    public void setCommonMaterialsId(String commonMaterialsId) {
        this.commonMaterialsId = commonMaterialsId;
    }

    /**
     * 获取冗余物料号
     *
     * @return common_materials_no - 冗余物料号
     */
    public String getCommonMaterialsNo() {
        return commonMaterialsNo;
    }

    /**
     * 设置冗余物料号
     *
     * @param commonMaterialsNo 冗余物料号
     */
    public void setCommonMaterialsNo(String commonMaterialsNo) {
        this.commonMaterialsNo = commonMaterialsNo;
    }

    /**
     * 获取物料skuID
     *
     * @return common_materials_sku_id - 物料skuID
     */
    public String getCommonMaterialsSkuId() {
        return commonMaterialsSkuId;
    }

    /**
     * 设置物料skuID
     *
     * @param commonMaterialsSkuId 物料skuID
     */
    public void setCommonMaterialsSkuId(String commonMaterialsSkuId) {
        this.commonMaterialsSkuId = commonMaterialsSkuId;
    }

    /**
     * 获取本次到料数量
     *
     * @return quantity - 本次到料数量
     */
    public BigDecimal getQuantity() {
        return quantity;
    }

    /**
     * 设置本次到料数量
     *
     * @param quantity 本次到料数量
     */
    public void setQuantity(BigDecimal quantity) {
        this.quantity = quantity;
    }

    /**
     * 获取到料单价
     *
     * @return price_unit - 到料单价
     */
    public BigDecimal getPriceUnit() {
        return priceUnit;
    }

    /**
     * 设置到料单价
     *
     * @param priceUnit 到料单价
     */
    public void setPriceUnit(BigDecimal priceUnit) {
        this.priceUnit = priceUnit;
    }

    /**
     * 获取到料金额
     *
     * @return price_total - 到料金额
     */
    public BigDecimal getPriceTotal() {
        return priceTotal;
    }

    /**
     * 设置到料金额
     *
     * @param priceTotal 到料金额
     */
    public void setPriceTotal(BigDecimal priceTotal) {
        this.priceTotal = priceTotal;
    }

    /**
     * 获取采购类型  0: 按工单bom需求采购 1: 计划外采购
     *
     * @return type - 采购类型  0: 按工单bom需求采购 1: 计划外采购
     */
    public Integer getType() {
        return type;
    }

    /**
     * 设置采购类型  0: 按工单bom需求采购 1: 计划外采购
     *
     * @param type 采购类型  0: 按工单bom需求采购 1: 计划外采购
     */
    public void setType(Integer type) {
        this.type = type;
    }

    public boolean isCancel() {
        return cancel;
    }

    public void setCancel(boolean cancel) {
        this.cancel = cancel;
    }
}